import dis


def f1():
    for i in range(10):
        k = i
    print(i, k)


def f2():
    e = 1
    try:
        raise Exception("")
    except Exception as e:
        pass
    print(e)


def f():
    x = 0
    lst = [x for x in range(10)]
    print(x)


def main() -> None:
    # f1()
    f2()


if __name__ == "__main__":
    main()

# dis.dis(f)

# 类定义或函数内部才会有新的局部变量
